﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EC_Agent
{
    public partial class Index1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["IsLogin"] != null && (bool)Session["IsLogin"])
            {
                LabWelcome.Visible = true;
                LabUser.Text = Session["Username"].ToString();
                LabUser.Visible = true;
                DangNhap.Attributes.Add("style", "display:none");
                DangKy.Attributes.Add("style", "display:none");
            }
            else
            {
                UpdateInfo.Attributes.Add("style", "display:none");
                LichSuGD.Attributes.Add("style", "display:none");
                Logout.Attributes.Add("style", "display:none");
            }
        }
    }
}